package com.quanshu.shop.main.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.quanshu.shop.main.view.ShopMainGoodsFragment;

import java.util.List;

/**
 * 作者  李哲
 * 创建时间 2018/7/17
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
public class ShopMainRecommendGoodsPageFragmentAdapter extends FragmentPagerAdapter {
    private List<ShopMainGoodsFragment> shopMainGoodsFragmentList;

    public ShopMainRecommendGoodsPageFragmentAdapter(FragmentManager fm, List<ShopMainGoodsFragment> shopMainGoodsFragmentListInit) {
        super(fm);
        shopMainGoodsFragmentList = shopMainGoodsFragmentListInit;
    }

    @Override
    public Fragment getItem(int position) {
        return shopMainGoodsFragmentList.get(position);
    }

    @Override
    public int getCount() {
        return shopMainGoodsFragmentList.size();
    }
}
